﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <script type="text/javascript" src="../scripts/jquery-1.4.2.min.js"></script>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

    <script type="text/javascript" src="../scripts/jquery.ui.datepicker-pt-BR.js"></script>

    <script type="text/javascript" src="../scripts/jqXMLUtils.pack.js"></script>

    <script type="text/javascript" src="../scripts/jquery.checkboxes.min.js"></script>

    <script type="text/javascript" src="../scripts/jquery.jgfeed-min.js"></script>

    <script type="text/javascript" src="../admin/canais.js"></script>

    <script type="text/javascript" src="../scripts/principal.js"></script>

    <script type="text/javascript" src="../scripts/cufon.js"></script>

    <script type="text/javascript" src="../scripts/Helvetica.js"></script>

    <link rel="Stylesheet" href="../style/global.css" type="text/css" />

    <script type="text/javascript">
            Cufon.replace('body');
    </script>

 

    <script type="text/javascript">
	    $(document).ready(function() {
	        var strHTML = '';

	        $.each(canais, function(i) {
	            strHTML +=
	                '<fieldset>' +
	                    '<legend class="' + canais[i].id + '"><span>' + canais[i].nome + '</span></legend>' +
                        '<ul id="canais_' + canais[i].id + '">';

	            $.each(canais[i].subcanais, function(p) {
	                strHTML +=
	                    '<li>' +
	                        '<input type="checkbox" id="' + canais[i].subcanais[p].id + '" value="' + canais[i].subcanais[p].rss + '" />' +
	                        '<label for="' + canais[i].subcanais[p].id + '">' + canais[i].subcanais[p].nome + '</label>' +
	                    '</li>';
	            });

	            strHTML +=
	                    '</ul>' +
                    '</fieldset>';
	        });

	        $(".tipo-canais").append(strHTML);

	        gerenciaTodosChecks();
	        adicionaCanais();

	        //$.datepicker.setDefaults($.datepicker.regional['pt-BR']);

	        //var data = $.datepicker.parseDate('D, dd M yy', 'Thu, 23 Sep 2010');
	        //alert(data);

	        var novaDt = $.datepicker.formatDate('DD, dd MM yy', new Date('Thu, 23 Sep 2010 07:31:00 -0700'));
	        alert(novaDt);

	        //$.datepicker.setDefaults($.datepicker.regional['pt-BR']);

	        //alert($.datepicker.formatDate('D, dd M yy', new Date(novaDt)));



	    });
    </script>

    <title>Adicionar Canais</title>
</head>
<body>
    <div class="topo">
        <h1>
            Vê o Extra</h1>
        <a href="#" class="indicar-amigo">Indicar este aplicativo para meus amigos</a> <a
            href="#" class="logo">
            <img src="../images/logo.png" alt="Vê o Extra" /></a>
    </div>
    <div id="adicionar_canais">
        <h3>
            Seja Bem-Vindo(a), <strong id="nomeDono"></strong>.</h3>
        <div>
            <h1>
                Meus Canais</h1>
        </div>
        <h2>
            Adicione os canais de que deseja acompanhar:</h2>
        <input type="checkbox" class="ckbSelecionarCanais" id="ckbSelecionarCanais" />
        <label for="ckbSelecionarCanais">
            Selecionar Todos os Canais</label>
        <div class="escolha-canais">
        </div>
        <a id="btnAdicionarCanais" href="#" title="Adicionar Canais">Adicionar Canais</a>
    </div>
</body>
</html>
